home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIPluginElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  115 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPluginElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPluginElement_h__
  6. #define __gen_nsIPluginElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIPluginElement */
  19. #define NS_IPLUGINELEMENT_IID_STR "41be252d-c47b-40f3-94bc-bffe51762d68"
  20.  
  21. #define NS_IPLUGINELEMENT_IID \
  22.   {0x41be252d, 0xc47b, 0x40f3, \
  23.     { 0x94, 0xbc, 0xbf, 0xfe, 0x51, 0x76, 0x2d, 0x68 }}
  24.  
  25. /**
  26.  * Interface which plugin elements (e.g. embed and object) implement
  27.  * (but don't automatically expose to JS) in addition to their dom
  28.  * specific interface.
  29.  */
  30. class NS_NO_VTABLE nsIPluginElement : public nsISupports {
  31.  public: 
  32.  
  33.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPLUGINELEMENT_IID)
  34.  
  35.   /**
  36.    * The actual mime type (the one we got back from the network
  37.    * request) for the plugin element.
  38.    */
  39.   /* readonly attribute ACString actualType; */
  40.   NS_IMETHOD GetActualType(nsACString & aActualType) = 0;
  41.  
  42.   /**
  43.    * Non-scriptable setter for the actual mime type (the one we got
  44.    * back from the network request).
  45.    */
  46.   /* [noscript] void setActualType (in ACString actualType); */
  47.   NS_IMETHOD SetActualType(const nsACString & actualType) = 0;
  48.  
  49. };
  50.  
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSIPLUGINELEMENT \
  53.   NS_IMETHOD GetActualType(nsACString & aActualType); \
  54.   NS_IMETHOD SetActualType(const nsACString & actualType); 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  57. #define NS_FORWARD_NSIPLUGINELEMENT(_to) \
  58.   NS_IMETHOD GetActualType(nsACString & aActualType) { return _to GetActualType(aActualType); } \
  59.   NS_IMETHOD SetActualType(const nsACString & actualType) { return _to SetActualType(actualType); } 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_NSIPLUGINELEMENT(_to) \
  63.   NS_IMETHOD GetActualType(nsACString & aActualType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActualType(aActualType); } \
  64.   NS_IMETHOD SetActualType(const nsACString & actualType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActualType(actualType); } 
  65.  
  66. #if 0
  67. /* Use the code below as a template for the implementation class for this interface. */
  68.  
  69. /* Header file */
  70. class nsPluginElement : public nsIPluginElement
  71. {
  72. public:
  73.   NS_DECL_ISUPPORTS
  74.   NS_DECL_NSIPLUGINELEMENT
  75.  
  76.   nsPluginElement();
  77.  
  78. private:
  79.   ~nsPluginElement();
  80.  
  81. protected:
  82.   /* additional members */
  83. };
  84.  
  85. /* Implementation file */
  86. NS_IMPL_ISUPPORTS1(nsPluginElement, nsIPluginElement)
  87.  
  88. nsPluginElement::nsPluginElement()
  89. {
  90.   /* member initializers and constructor code */
  91. }
  92.  
  93. nsPluginElement::~nsPluginElement()
  94. {
  95.   /* destructor code */
  96. }
  97.  
  98. /* readonly attribute ACString actualType; */
  99. NS_IMETHODIMP nsPluginElement::GetActualType(nsACString & aActualType)
  100. {
  101.     return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103.  
  104. /* [noscript] void setActualType (in ACString actualType); */
  105. NS_IMETHODIMP nsPluginElement::SetActualType(const nsACString & actualType)
  106. {
  107.     return NS_ERROR_NOT_IMPLEMENTED;
  108. }
  109.  
  110. /* End of implementation class template. */
  111. #endif
  112.  
  113.  
  114. #endif /* __gen_nsIPluginElement_h__ */
  115.